package cn.ivicar.iov.controller;

import cn.ivicar.iov.entity.Result;
import cn.ivicar.iov.service.IdentifyService;
import cn.ivicar.iov.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: iov
 * @description: ${description}
 * @author: Mr.Wang
 * @create: 2018-08-13 16:18
 **/
@RestController
public class IdentifyController {
    @Autowired
    private IdentifyService identifyService;

    @GetMapping(value = "/IsIdentify")
    public Result IsIdentify(@RequestParam("vehicle_serial") String vehicle_serial){
        identifyService.updateStatus(vehicle_serial);
        return ResultUtil.success(identifyService.IsIdentify(vehicle_serial));
    }
}
